/*
import java.util.Arrays;

class Grade implements Cloneable{
     public int chinese;
     public int math;
     public int english;
     public int c;
     public int gradeSum() {
         return this.chinese+this.math+this.english+this.c;
     }
     public Grade(int chinese, int math, int english, int c) {
         this.chinese = chinese;
         this.math = math;
         this.english = english;
         this.c = c;
     }
     public String toString() {
         return "chinese = " + this.chinese + " | math = " + this.math + " | english = " + this.english + " | c = " + this.c;
     }
     public Object clone() throws CloneNotSupportedException {
         return super.clone();
     }
}
class Student implements Cloneable{
    public int age;
    public String name;
    public Grade grade;
    public void pp() {
        System.out.println("Student类");
    }
    public void write() {
        System.out.println("写作业");
    }
    public Student(int age, String name, Grade grade) {
        this.age = age;
        this.name = name;
        this.grade = grade;
    }
    public String toString() {
        return "Student{" +
                "name = " + name + " | " +
                "age = " + age + " | " + "grade:" + this.grade.toString() +
                '}';
    }
    public Object clone() throws CloneNotSupportedException {
        Student tmp = (Student)super.clone();
        tmp.grade = (Grade)this.grade.clone();
        return tmp;
    }

class GoodStudent extends Student {
    public GoodStudent(int age, String name, Grade grade) {
        super(age, name, grade);
    }
}
interface Ia {
    void pp();
}
public class Main {
    public static void main(String[] args) {
        Ia a = new Ia(){
            public final String test_str = "Hello World";
            public int b;
            public void pp() {
                System.out.println("匿名内部类");
            }
        };
        */
/*a.pp();
        Student stu1 = new Student();
        System.out.println(a instanceof Ia);
        System.out.println(stu1 instanceof Ia);
        //System.out.println(a.b);
        GoodStudent goodstu1 = new GoodStudent();
        goodstu1.write();*//*

        Student stu2 = new Student(17, "xtc", new Grade(100, 100, 100, 100));
        Student stu3 = (Student)stu2.clone();
        System.out.println(stu2);
        System.out.println(stu3);
        System.out.println("-----------------------");
        stu3.grade = new Grade(0, 0, 0, 0);
        System.out.println(stu2);
        System.out.println(stu3);
    }
}*/
